strictly check for the associated get/set arg functions. if an arg is
authorTim Janik <timj@gtk.org>
Fri, 10 Jul 1998 11:36:26 +0000 (11:36 +0000)
committerTim Janik <timj@src.gnome.org>
Fri, 10 Jul 1998 11:36:26 +0000 (11:36 +0000)
Fri Jul 10 13:29:53 1998  Tim Janik  <timj@gtk.org>

        * gtk/gtkcontainer.c:
        (gtk_container_arg_get):
        (gtk_container_arg_set):
        * gtk/gtkobject.c:
        (gtk_object_arg_set):
        (gtk_object_arg_get):
        strictly check for the associated get/set arg functions. if an
        arg is readable or writable, the associated class functions *must*
        be provided.

ChangeLog
ChangeLog.pre-2-0
ChangeLog.pre-2-10
ChangeLog.pre-2-2
ChangeLog.pre-2-4
ChangeLog.pre-2-6
ChangeLog.pre-2-8
gtk/gtkcontainer.c
gtk/gtkobject.c

index f6b66b97be81418e29c493209bd3f26192920e18..4cffa35544e8827beb9e506c913ca2a44cdcb848 100644 (file)
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,3 +1,15 @@
+Fri Jul 10 13:29:53 1998  Tim Janik  <timj@gtk.org>
+
+       * gtk/gtkcontainer.c:
+       (gtk_container_arg_get): 
+       (gtk_container_arg_set): 
+       * gtk/gtkobject.c:
+       (gtk_object_arg_set): 
+       (gtk_object_arg_get):
+       strictly check for the associated get/set arg functions. if an
+       arg is readable or writable, the associated class functions *must*
+       be provided.
+
 Fri Jul 10 09:37:50 1998  Tim Janik  <timj@gtk.org>
 
        * gtk/gtkaccellabel.c (gtk_accel_label_accelerator_width): only take the
index f6b66b97be81418e29c493209bd3f26192920e18..4cffa35544e8827beb9e506c913ca2a44cdcb848 100644 (file)
@@ -1,3 +1,15 @@
+Fri Jul 10 13:29:53 1998  Tim Janik  <timj@gtk.org>
+
+       * gtk/gtkcontainer.c:
+       (gtk_container_arg_get): 
+       (gtk_container_arg_set): 
+       * gtk/gtkobject.c:
+       (gtk_object_arg_set): 
+       (gtk_object_arg_get):
+       strictly check for the associated get/set arg functions. if an
+       arg is readable or writable, the associated class functions *must*
+       be provided.
+
 Fri Jul 10 09:37:50 1998  Tim Janik  <timj@gtk.org>
 
        * gtk/gtkaccellabel.c (gtk_accel_label_accelerator_width): only take the
index f6b66b97be81418e29c493209bd3f26192920e18..4cffa35544e8827beb9e506c913ca2a44cdcb848 100644 (file)
@@ -1,3 +1,15 @@
+Fri Jul 10 13:29:53 1998  Tim Janik  <timj@gtk.org>
+
+       * gtk/gtkcontainer.c:
+       (gtk_container_arg_get): 
+       (gtk_container_arg_set): 
+       * gtk/gtkobject.c:
+       (gtk_object_arg_set): 
+       (gtk_object_arg_get):
+       strictly check for the associated get/set arg functions. if an
+       arg is readable or writable, the associated class functions *must*
+       be provided.
+
 Fri Jul 10 09:37:50 1998  Tim Janik  <timj@gtk.org>
 
        * gtk/gtkaccellabel.c (gtk_accel_label_accelerator_width): only take the
index f6b66b97be81418e29c493209bd3f26192920e18..4cffa35544e8827beb9e506c913ca2a44cdcb848 100644 (file)
@@ -1,3 +1,15 @@
+Fri Jul 10 13:29:53 1998  Tim Janik  <timj@gtk.org>
+
+       * gtk/gtkcontainer.c:
+       (gtk_container_arg_get): 
+       (gtk_container_arg_set): 
+       * gtk/gtkobject.c:
+       (gtk_object_arg_set): 
+       (gtk_object_arg_get):
+       strictly check for the associated get/set arg functions. if an
+       arg is readable or writable, the associated class functions *must*
+       be provided.
+
 Fri Jul 10 09:37:50 1998  Tim Janik  <timj@gtk.org>
 
        * gtk/gtkaccellabel.c (gtk_accel_label_accelerator_width): only take the
index f6b66b97be81418e29c493209bd3f26192920e18..4cffa35544e8827beb9e506c913ca2a44cdcb848 100644 (file)
@@ -1,3 +1,15 @@
+Fri Jul 10 13:29:53 1998  Tim Janik  <timj@gtk.org>
+
+       * gtk/gtkcontainer.c:
+       (gtk_container_arg_get): 
+       (gtk_container_arg_set): 
+       * gtk/gtkobject.c:
+       (gtk_object_arg_set): 
+       (gtk_object_arg_get):
+       strictly check for the associated get/set arg functions. if an
+       arg is readable or writable, the associated class functions *must*
+       be provided.
+
 Fri Jul 10 09:37:50 1998  Tim Janik  <timj@gtk.org>
 
        * gtk/gtkaccellabel.c (gtk_accel_label_accelerator_width): only take the
index f6b66b97be81418e29c493209bd3f26192920e18..4cffa35544e8827beb9e506c913ca2a44cdcb848 100644 (file)
@@ -1,3 +1,15 @@
+Fri Jul 10 13:29:53 1998  Tim Janik  <timj@gtk.org>
+
+       * gtk/gtkcontainer.c:
+       (gtk_container_arg_get): 
+       (gtk_container_arg_set): 
+       * gtk/gtkobject.c:
+       (gtk_object_arg_set): 
+       (gtk_object_arg_get):
+       strictly check for the associated get/set arg functions. if an
+       arg is readable or writable, the associated class functions *must*
+       be provided.
+
 Fri Jul 10 09:37:50 1998  Tim Janik  <timj@gtk.org>
 
        * gtk/gtkaccellabel.c (gtk_accel_label_accelerator_width): only take the
index f6b66b97be81418e29c493209bd3f26192920e18..4cffa35544e8827beb9e506c913ca2a44cdcb848 100644 (file)
@@ -1,3 +1,15 @@
+Fri Jul 10 13:29:53 1998  Tim Janik  <timj@gtk.org>
+
+       * gtk/gtkcontainer.c:
+       (gtk_container_arg_get): 
+       (gtk_container_arg_set): 
+       * gtk/gtkobject.c:
+       (gtk_object_arg_set): 
+       (gtk_object_arg_get):
+       strictly check for the associated get/set arg functions. if an
+       arg is readable or writable, the associated class functions *must*
+       be provided.
+
 Fri Jul 10 09:37:50 1998  Tim Janik  <timj@gtk.org>
 
        * gtk/gtkaccellabel.c (gtk_accel_label_accelerator_width): only take the
index c5a236d6ccca86ae385d73796d43a29040698a81..57de4b12b930f8e6591fc9fda470eec08441f3c4 100644 (file)
@@ -492,8 +492,8 @@ gtk_container_arg_set (GtkContainer *container,
     }
   
   class = gtk_type_class (info->class_type);
-  if (class->set_child_arg)
-    class->set_child_arg (container, child, arg, info->arg_id);
+  g_assert (class->set_child_arg != NULL);
+  class->set_child_arg (container, child, arg, info->arg_id);
 }
 
 void
@@ -537,13 +537,9 @@ gtk_container_arg_get (GtkContainer *container,
     }
   
   class = gtk_type_class (info->class_type);
-  if (class->get_child_arg)
-    {
-      arg->type = info->type;
-      class->get_child_arg (container, child, arg, info->arg_id);
-    }
-  else
-    arg->type = GTK_TYPE_INVALID;
+  g_assert (class->get_child_arg != NULL);
+  arg->type = info->type;
+  class->get_child_arg (container, child, arg, info->arg_id);
 }
 
 void
index 78dd409713115bdbcbb96e9cffde5550f9e133e1..c0d9e2ea2367ef38e4bb8c2b447b96ccaff02daa 100644 (file)
@@ -800,8 +800,8 @@ gtk_object_arg_set (GtkObject *object,
     }
   
   oclass = gtk_type_class (info->class_type);
-  if (oclass->set_arg)
-    oclass->set_arg (object, arg, info->arg_id);
+  g_assert (oclass->set_arg != NULL);
+  oclass->set_arg (object, arg, info->arg_id);
 }
 
 void
@@ -841,13 +841,9 @@ gtk_object_arg_get (GtkObject           *object,
     }
   
   oclass = gtk_type_class (info->class_type);
-  if (oclass->get_arg)
-    {
-      arg->type = info->type;
-      oclass->get_arg (object, arg, info->arg_id);
-    }
-  else
-    arg->type = GTK_TYPE_INVALID;
+  g_assert (oclass->get_arg != NULL);
+  arg->type = info->type;
+  oclass->get_arg (object, arg, info->arg_id);
 }
 
 void